package com.example.administrator.caigou51.util;

import java.text.DecimalFormat;

/**
 * Created by Administrator on 2016/9/24/024.
 */
public class MyMathUtial {

//保留2位小数
    public static String saveTwoXiaoShu(float t)
    {
        DecimalFormat fnum  =   new  DecimalFormat("##0.00");
        String showTotal=fnum.format(t);
        return showTotal;
    }
}
